package com.example.demo.lishitihuan;

/**
 * 里氏替换原则， 场景类
 */
public class Client {

    public static void main(String[] args) {
//        Soldier soldier = new Soldier();
//        soldier.setGun(new MachineGun());
//        soldier.killEmemy();
        Snipper snipper = new Snipper();
        snipper.killEnemy(new AUG());
    }
}
